﻿using System;
using System.Data;
using System.Data.Common;
using Liger.Common;
using Liger.Data;

namespace EasyFMS.Model
{

	/// <summary>
	/// 实体类zJob
	/// </summary>
	[Serializable]
	public class zJob : Entity 
	{ 
		 public zJob() 
            : base("zJob") 
        { 

        }


		#region Model
		private string _jobname;
	 
		/// <summary>
		/// 
		/// </summary>
		public string jobname
		{
			get{ return _jobname; }
			set
			{
				this.OnPropertyValueChange(_.jobname,_jobname,value);
				this._jobname = value;
			}
		}
		#endregion

		#region Method
		/// <summary>
		/// 获取列信息
		/// </summary>
		public override Field[] GetFields()
		{
			return new Field[] {
				_.jobname
			};
		}
		/// <summary>
		/// 获取值信息
		/// </summary>
		public override object[] GetValues()
		{
			return new object[] {
				_jobname
			};
		} 
		/// <summary>
		/// 设置字段值
		/// </summary>
		public override void SetValue(string fieldName, object value)
        {
            switch (fieldName)
            { 
				case "jobname":
                    this._jobname = DataHelper.ConvertValue<string>(value);
                    break; 
            }
        }
		/// <summary>
		/// 获取字段值
		/// </summary>
        public override object GetValue(string fieldName)
        {
            switch (fieldName)
            { 
				case "jobname":
                    return this._jobname; 
				default :
                    return null;
            } 
        }



		#endregion

		#region _Field
		/// <summary>
		/// 字段信息
		/// </summary>
		public class _
		{
			/// <summary>
			/// * 
			/// </summary>
			public readonly static Field All = new Field("*","zJob");
 
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field jobname = new Field("jobname","zJob","jobname");
		}
		#endregion

 
	}
}

